package org.akomantoso.core.data;

import java.io.IOException;

import org.akomantoso.core.io.Output;

/**
 * The element voting is a metadata container containing information about an event of a vote happened within a debate.
 * 
 * <pre>
 * 	<xsd:element name="voting" type="parliamentaryAnalysisType"/>
 * </pre>
 * 
 * @author <a href="mailto:jacques.militello@gmail.com">Jacques Militello</a>
 */
public final class Voting extends ParliamentaryAnalysisType implements ParliamentaryAnalysisElement {

	public static final String ELEMENT = "voting";

	/**
	 * @see org.akomantoso.core.data.ParliamentaryAnalysisType#writeExternal(org.akomantoso.core.io.Output)
	 */
	@Override
	public <T extends Output> void writeExternal(T out) throws IOException {
		out.writeStart(ELEMENT);
		super.writeExternal(out);
		out.writeEnd();
	}

}